Page({
  data: {
    notices: [],
  },
  onLoad() {
    this.getNotices()
  },
  async getNotices() {
    const res = await wx.http.get('/announcement')
    this.setData({
      notices: res.data,
    })
  },
})
